package com.blog.boot.api.common;

import org.springframework.stereotype.Component;

@Component
public class RestFactory {
    public RestMsg getMsg(){return new RestMsg().success("调用成功");}
    public RestMsg.RestModelAndView setModelAndView(String viewPath){
        return new RestMsg().new RestModelAndView(viewPath);
    }
}
